<!-- 菜单详情 -->
<script lang="ts" setup>
import { ref } from 'vue'
defineProps({
  title: {
    type: String,
    default: ''
  }
})

const showDialog = ref(false)
/**
 * 初始化弹窗
 */
function init() {
  showDialog.value = true
}
/**
 * 点击确定
 */
function submitClick() {}

defineExpose({
  init
})
</script>

<template>
  <dui-dialog v-model="showDialog" :title="title">
    <template #footer>
      <el-button @click="showDialog = false">取消</el-button>
      <el-button type="primary" @click="submitClick"> 确定 </el-button>
    </template>
  </dui-dialog>
</template>
